//
//  SelfPageView.m
//  BosidengIphone
//
//  Created by  on 12-1-18.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "SelfPageView.h"
#import "SelfView.h"

@implementation SelfPageView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

- (void)initAllSubView {
    viewCount = 3;
    recomViews = [[NSMutableArray arrayWithCapacity:viewCount] retain];
    
    int x = 0;
    for (int i = 0; i < viewCount; i++) {
        x = i * (96 + 8);
        //NSLog(@"x=%d", x);
        CGRect subFrame = CGRectMake(x, 0, 96, 130);
        SelfView *view = [[SelfView alloc] initWithFrame:subFrame];
        [recomViews addObject:view];
        [self addSubview:view];
        [view release];
    }
}

@end
